/**
 * Created by zhangwenlei on 2017/5/9.
 */
ADF.model.ButtonGroupModel = function(isGrid) {
    ADF.model.ButtonGroupModel.superclass.constructor.call(this);
    this.isGrid = isGrid;
};

COM.util.defineClass(ADF.model.ButtonGroupModel, ADF.model.CompositeModel, {
    _getModelType: function(){
        return "ADF.model.ButtonGroupModel";
    },
    _getName : function(){
        return 'buttonGroup';  
    },
    _initChildLayoutData : function(child){
        var layoutdata=new COM.draw2d.Point();
        COM.util.ObjUtil.copyProperty(layoutdata,child.getLayoutData());
        child.setLayoutData(layoutdata);
    },

    _initChildLayoutDataEditorType : function(descriptor){
        descriptor.setEditorType("baseProperty.ButtonGroupLayoutDataEditor");
    },
    _getShowText : function(){
        return "ButtonGroup";
    }
});